package cn.edu.xust.service;


import cn.edu.xust.configuration.exception.Default200Exception;
import cn.edu.xust.entity.SysMenuEntity;
import cn.edu.xust.Ro.MenuRo;
import cn.edu.xust.Ro.MenuTreeRo;
import cn.edu.xust.util.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ufo
 * @email 2575829997@qq.com
 * @date 2022-09-06 17:32:09
 */
public interface SysMenuService extends IService<SysMenuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SysMenuEntity> getByMenuids(List<Integer> menuidsdistinct);


    /**
     * 获取登录路由菜单
     * @param username
     * @param pwd
     * @return
     * @throws Default200Exception
     */
    MenuRo getrouteByNP(String username, String pwd) throws Default200Exception;


    /**
     * 获取某个用户的管理权限菜单
     * @param username
     * @param pwd
     * @return
     */
    ArrayList<MenuTreeRo> getTreeMenu(String username, String pwd) throws Default200Exception;

}

